package com.sheliduan.itlearning.common.domain.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: 断舍离
 * @date: 2025/2/8 20:28
 * @description: 视频课程表实体类
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("t_video_course")
public class VideoCourseDO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;

    private String cover;

    private String summary;

    // 视频地址
    private String location;

    // 课程类型(0文章类型/1视频类型)
    private Integer type;

    private Double price;

    // 该文章所属用户id
    private Integer userId;

    private Date createTime;

    private Date updateTime;

    // 课程状态(0草稿/1审核中/2审核通过/3审核不通过)
    private Integer status;

    // 视频阅读量
    private Integer watchNums;
}
